<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>LASAR: BluetoothChatService Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="Logo HDPI [329x72].png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">LASAR
   &#160;<span id="projectnumber">v. 1.0</span>
   </div>
   <div id="projectbrief">Light Automation System Accessed Remotely</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacecom.html">com</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1example.html">example</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1example_1_1android.html">android</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1example_1_1android_1_1_bluetooth_chat.html">BluetoothChat</a>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html">BluetoothChatService</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">BluetoothChatService Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for BluetoothChatService:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service__coll__graph.png" border="0" usemap="#_bluetooth_chat_service_coll__map" alt="Collaboration graph"/></div>
<map name="_bluetooth_chat_service_coll__map" id="_bluetooth_chat_service_coll__map">
<area shape="rect" id="node6" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html" title="BluetoothChatService.ConnectedThread" alt="" coords="312,107,563,133"/><area shape="rect" id="node20" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html" title="BluetoothChatService.ConnectThread" alt="" coords="319,157,556,184"/><area shape="rect" id="node16" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_accept_thread.html" title="BluetoothChatService.AcceptThread" alt="" coords="322,259,553,285"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_accept_thread.html">AcceptThread</a></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html">ConnectedThread</a></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html">ConnectThread</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a82aeace1fb85fa6450790cb18d9154e8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a82aeace1fb85fa6450790cb18d9154e8">BluetoothChatService</a> (Context context, Handler handler)</td></tr>
<tr class="memitem:a6a50c2d9aca011bf98c1ef858548b905"><td class="memItemLeft" align="right" valign="top">synchronized int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a6a50c2d9aca011bf98c1ef858548b905">getState</a> ()</td></tr>
<tr class="memitem:ae3e5313b36e6f003857174584df1753e"><td class="memItemLeft" align="right" valign="top">synchronized void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#ae3e5313b36e6f003857174584df1753e">start</a> ()</td></tr>
<tr class="memitem:a210e75ad8ad1a78004ee6fe643acd0aa"><td class="memItemLeft" align="right" valign="top">synchronized void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a210e75ad8ad1a78004ee6fe643acd0aa">connect</a> (BluetoothDevice device)</td></tr>
<tr class="memitem:a7684309f45e8b4bbbe3478b7c6b7d786"><td class="memItemLeft" align="right" valign="top">synchronized void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a7684309f45e8b4bbbe3478b7c6b7d786">connected</a> (BluetoothSocket socket, BluetoothDevice device)</td></tr>
<tr class="memitem:a4bcef6dec76484d625984ace718f36fd"><td class="memItemLeft" align="right" valign="top">synchronized void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a4bcef6dec76484d625984ace718f36fd">stop</a> ()</td></tr>
<tr class="memitem:a8f39f71b4e3de075a0b64236eb5ec876"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a8f39f71b4e3de075a0b64236eb5ec876">write</a> (byte[] out)</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:acca6c8882253f023c0c4a78c76e07a5d"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#acca6c8882253f023c0c4a78c76e07a5d">STATE_NONE</a> = 0</td></tr>
<tr class="memitem:a5b119ac8b511b1ccc522ad84810097fd"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a5b119ac8b511b1ccc522ad84810097fd">STATE_LISTEN</a> = 1</td></tr>
<tr class="memitem:a3f330f5177bb8c94ae6c8796c4839e0c"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a3f330f5177bb8c94ae6c8796c4839e0c">STATE_CONNECTING</a> = 2</td></tr>
<tr class="memitem:a65bee812daa1c06904d2bfc9b6c98607"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a65bee812daa1c06904d2bfc9b6c98607">STATE_CONNECTED</a> = 3</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a09b77b92fc6c880860a3dbf4ab21e36c"><td class="memItemLeft" align="right" valign="top">synchronized void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a09b77b92fc6c880860a3dbf4ab21e36c">setState</a> (int state)</td></tr>
<tr class="memitem:a784e1d9992765b96eb29e9ba63ad8902"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a784e1d9992765b96eb29e9ba63ad8902">connectionFailed</a> ()</td></tr>
<tr class="memitem:abd4a195467743d2b3642bde9c5d2e0f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#abd4a195467743d2b3642bde9c5d2e0f6">connectionLost</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ad0137191bfc9f5f84d692c5179046dac"><td class="memItemLeft" align="right" valign="top">final BluetoothAdapter&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#ad0137191bfc9f5f84d692c5179046dac">mAdapter</a></td></tr>
<tr class="memitem:ac596631c3faeaba71c591b7d6232c489"><td class="memItemLeft" align="right" valign="top">final Handler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#ac596631c3faeaba71c591b7d6232c489">mHandler</a></td></tr>
<tr class="memitem:a5e8a8695cae6c6a842646ec72feb30d7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_accept_thread.html">AcceptThread</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a5e8a8695cae6c6a842646ec72feb30d7">mAcceptThread</a></td></tr>
<tr class="memitem:a329b61002394a1b98ae8366549c3f4e8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html">ConnectThread</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a329b61002394a1b98ae8366549c3f4e8">mConnectThread</a></td></tr>
<tr class="memitem:a35e6f3f781880c30d3fffef2e408d367"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html">ConnectedThread</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a35e6f3f781880c30d3fffef2e408d367">mConnectedThread</a></td></tr>
<tr class="memitem:a9170ea7c3cb727e1c86da45a7ed88a54"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a9170ea7c3cb727e1c86da45a7ed88a54">mState</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr class="memitem:a844c5efdea72aa6bf76fb98b1072572a"><td class="memItemLeft" align="right" valign="top">static final String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a844c5efdea72aa6bf76fb98b1072572a">TAG</a> = &quot;BluetoothChatService&quot;</td></tr>
<tr class="memitem:a5d04bb9010fad999fbcad7c652d6c0ce"><td class="memItemLeft" align="right" valign="top">static final boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a5d04bb9010fad999fbcad7c652d6c0ce">D</a> = true</td></tr>
<tr class="memitem:a2e2a8b5e4b33363e36e2d75ff425c86c"><td class="memItemLeft" align="right" valign="top">static final String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a2e2a8b5e4b33363e36e2d75ff425c86c">NAME</a> = &quot;BluetoothChat&quot;</td></tr>
<tr class="memitem:ad6683c9b25da0fe7ea60ab048c7589cb"><td class="memItemLeft" align="right" valign="top">static final UUID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#ad6683c9b25da0fe7ea60ab048c7589cb">MY_UUID</a> = UUID.fromString(&quot;00001101-0000-1000-8000-00805F9B34FB&quot;)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class does all the work for setting up and managing Bluetooth connections with other devices. It has a thread that listens for incoming connections, a thread for connecting with a device, and a thread for performing data transmissions when connected. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a82aeace1fb85fa6450790cb18d9154e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html">BluetoothChatService</a> </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Handler&#160;</td>
          <td class="paramname"><em>handler</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor. Prepares a new <a class="el" href="namespacecom_1_1example_1_1android_1_1_bluetooth_chat.html">BluetoothChat</a> session. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The UI Activity Context </td></tr>
    <tr><td class="paramname">handler</td><td>A Handler to send messages back to the UI Activity </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a210e75ad8ad1a78004ee6fe643acd0aa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">synchronized void <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a210e75ad8ad1a78004ee6fe643acd0aa">connect</a> </td>
          <td>(</td>
          <td class="paramtype">BluetoothDevice&#160;</td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Start the <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html">ConnectThread</a> to initiate a connection to a remote device. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">device</td><td>The BluetoothDevice to connect </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a210e75ad8ad1a78004ee6fe643acd0aa_cgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a210e75ad8ad1a78004ee6fe643acd0aa_cgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a210e75ad8ad1a78004ee6fe643acd0aa_cgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a210e75ad8ad1a78004ee6fe643acd0aa_cgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectThread.cancel" alt="" coords="129,5,623,32"/><area shape="rect" id="node5" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectedThread.cancel" alt="" coords="123,56,629,83"/><area shape="rect" id="node7" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a09b77b92fc6c880860a3dbf4ab21e36c" title="setState" alt="" coords="341,107,411,133"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a210e75ad8ad1a78004ee6fe643acd0aa_icgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a210e75ad8ad1a78004ee6fe643acd0aa_icgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a210e75ad8ad1a78004ee6fe643acd0aa_icgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a210e75ad8ad1a78004ee6fe643acd0aa_icgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a1f166dbb18c9970efc1bc01b9b2e5c54" title="Changes to Room Control screen. The MAC addresses are hard&#45;coded to appropriately connect to the RN&#45;4..." alt="" coords="123,5,485,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7684309f45e8b4bbbe3478b7c6b7d786"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">synchronized void <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a7684309f45e8b4bbbe3478b7c6b7d786">connected</a> </td>
          <td>(</td>
          <td class="paramtype">BluetoothSocket&#160;</td>
          <td class="paramname"><em>socket</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BluetoothDevice&#160;</td>
          <td class="paramname"><em>device</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Start the <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html">ConnectedThread</a> to begin managing a Bluetooth connection </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">socket</td><td>The BluetoothSocket on which the connection was made </td></tr>
    <tr><td class="paramname">device</td><td>The BluetoothDevice that has been connected </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a7684309f45e8b4bbbe3478b7c6b7d786_cgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a7684309f45e8b4bbbe3478b7c6b7d786_cgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a7684309f45e8b4bbbe3478b7c6b7d786_cgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a7684309f45e8b4bbbe3478b7c6b7d786_cgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectThread.cancel" alt="" coords="143,5,636,32"/><area shape="rect" id="node5" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectedThread.cancel" alt="" coords="136,56,643,83"/><area shape="rect" id="node7" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_accept_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.AcceptThread.cancel" alt="" coords="146,107,633,133"/><area shape="rect" id="node9" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a09b77b92fc6c880860a3dbf4ab21e36c" title="setState" alt="" coords="354,157,425,184"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a7684309f45e8b4bbbe3478b7c6b7d786_icgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a7684309f45e8b4bbbe3478b7c6b7d786_icgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a7684309f45e8b4bbbe3478b7c6b7d786_icgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a7684309f45e8b4bbbe3478b7c6b7d786_icgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_accept_thread.html#a13a43e6d814de94978c515cb084873b1" title="com.example.android.BluetoothChat.BluetoothChatService.AcceptThread.run" alt="" coords="140,5,607,32"/><area shape="rect" id="node5" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a13a43e6d814de94978c515cb084873b1" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectThread.run" alt="" coords="137,56,610,83"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a784e1d9992765b96eb29e9ba63ad8902"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a784e1d9992765b96eb29e9ba63ad8902">connectionFailed</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Indicate that the connection attempt failed and notify the UI Activity. </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a784e1d9992765b96eb29e9ba63ad8902_cgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a784e1d9992765b96eb29e9ba63ad8902_cgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a784e1d9992765b96eb29e9ba63ad8902_cgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a784e1d9992765b96eb29e9ba63ad8902_cgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a09b77b92fc6c880860a3dbf4ab21e36c" title="setState" alt="" coords="174,5,245,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a784e1d9992765b96eb29e9ba63ad8902_icgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a784e1d9992765b96eb29e9ba63ad8902_icgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a784e1d9992765b96eb29e9ba63ad8902_icgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a784e1d9992765b96eb29e9ba63ad8902_icgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a13a43e6d814de94978c515cb084873b1" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectThread.run" alt="" coords="174,5,647,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="abd4a195467743d2b3642bde9c5d2e0f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#abd4a195467743d2b3642bde9c5d2e0f6">connectionLost</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Indicate that the connection was lost and notify the UI Activity. </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_abd4a195467743d2b3642bde9c5d2e0f6_cgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_abd4a195467743d2b3642bde9c5d2e0f6_cgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_abd4a195467743d2b3642bde9c5d2e0f6_cgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_abd4a195467743d2b3642bde9c5d2e0f6_cgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a09b77b92fc6c880860a3dbf4ab21e36c" title="setState" alt="" coords="166,5,237,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_abd4a195467743d2b3642bde9c5d2e0f6_icgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_abd4a195467743d2b3642bde9c5d2e0f6_icgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_abd4a195467743d2b3642bde9c5d2e0f6_icgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_abd4a195467743d2b3642bde9c5d2e0f6_icgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html#a13a43e6d814de94978c515cb084873b1" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectedThread.run" alt="" coords="166,5,653,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6a50c2d9aca011bf98c1ef858548b905"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">synchronized int <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a6a50c2d9aca011bf98c1ef858548b905">getState</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the current connection state. </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a6a50c2d9aca011bf98c1ef858548b905_icgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a6a50c2d9aca011bf98c1ef858548b905_icgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a6a50c2d9aca011bf98c1ef858548b905_icgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a6a50c2d9aca011bf98c1ef858548b905_icgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a6a8a2004434afabb628a490d0d5273f9" title="com.example.android.BluetoothChat.LASARControl.sendMessage" alt="" coords="125,56,531,83"/><area shape="rect" id="node5" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a5bb861876066eec2e7de8212bc5312b5" title="com.example.android.BluetoothChat.LASARControl.setupChat" alt="" coords="1075,5,1458,32"/><area shape="rect" id="node9" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#adc846b4b8d9a9ee1e53b348432eb8aff" title="com.example.android.BluetoothChat.LASARControl.getFreq" alt="" coords="600,56,968,83"/><area shape="rect" id="node11" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#ab084bbab05e4d41e495608164e6bd56c" title="com.example.android.BluetoothChat.LASARControl.updateSatellite" alt="" coords="579,107,989,133"/><area shape="rect" id="node7" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a1f166dbb18c9970efc1bc01b9b2e5c54" title="Changes to Room Control screen. The MAC addresses are hard&#45;coded to appropriately connect to the RN&#45;4..." alt="" coords="1544,56,1907,83"/><area shape="rect" id="node13" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#abb13b75125cb8cb24fbeeef2451e262c" title="com.example.android.BluetoothChat.LASARControl.onStopTrackingTouch" alt="" coords="1042,56,1491,83"/><area shape="rect" id="node15" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#ae52c93cc72458772ce286f19d7cb6760" title="com.example.android.BluetoothChat.LASARControl.addListenerOnButton" alt="" coords="1043,107,1490,133"/><area shape="rect" id="node19" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a37a55c533c74b60c0290ef1329d74e65" title="com.example.android.BluetoothChat.LASARControl.onOptionsItemSelected" alt="" coords="1037,157,1496,184"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a09b77b92fc6c880860a3dbf4ab21e36c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">synchronized void <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a09b77b92fc6c880860a3dbf4ab21e36c">setState</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>state</em></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the current state of the chat connection </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">state</td><td>An integer defining the current connection state </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a09b77b92fc6c880860a3dbf4ab21e36c_icgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a09b77b92fc6c880860a3dbf4ab21e36c_icgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a09b77b92fc6c880860a3dbf4ab21e36c_icgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a09b77b92fc6c880860a3dbf4ab21e36c_icgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#ae3e5313b36e6f003857174584df1753e" title="start" alt="" coords="161,5,209,32"/><area shape="rect" id="node7" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a210e75ad8ad1a78004ee6fe643acd0aa" title="connect" alt="" coords="151,157,219,184"/><area shape="rect" id="node11" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a7684309f45e8b4bbbe3478b7c6b7d786" title="connected" alt="" coords="144,107,227,133"/><area shape="rect" id="node16" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a4bcef6dec76484d625984ace718f36fd" title="stop" alt="" coords="162,233,209,260"/><area shape="rect" id="node24" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a784e1d9992765b96eb29e9ba63ad8902" title="connectionFailed" alt="" coords="125,56,245,83"/><area shape="rect" id="node27" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#abd4a195467743d2b3642bde9c5d2e0f6" title="connectionLost" alt="" coords="130,309,241,336"/><area shape="rect" id="node5" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a13a43e6d814de94978c515cb084873b1" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectThread.run" alt="" coords="301,56,774,83"/><area shape="rect" id="node9" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a1f166dbb18c9970efc1bc01b9b2e5c54" title="Changes to Room Control screen. The MAC addresses are hard&#45;coded to appropriately connect to the RN&#45;4..." alt="" coords="356,157,719,184"/><area shape="rect" id="node13" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_accept_thread.html#a13a43e6d814de94978c515cb084873b1" title="com.example.android.BluetoothChat.BluetoothChatService.AcceptThread.run" alt="" coords="304,107,771,133"/><area shape="rect" id="node18" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a8a744b43949a3939f448facad211e3d2" title="com.example.android.BluetoothChat.LASARControl.onDestroy" alt="" coords="346,259,729,285"/><area shape="rect" id="node20" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#acb776333595cb036bf935852041cb088" title="com.example.android.BluetoothChat.LASARControl.onBackPressed" alt="" coords="329,309,745,336"/><area shape="rect" id="node22" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a3d586a7ab265876564fc5c288cb38e0d" title="Parses incoming stream. Finds Dimness and Blinds value on startup. Finds Frequency if prompted..." alt="" coords="356,208,719,235"/><area shape="rect" id="node29" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html#a13a43e6d814de94978c515cb084873b1" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectedThread.run" alt="" coords="294,360,781,387"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae3e5313b36e6f003857174584df1753e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">synchronized void <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#ae3e5313b36e6f003857174584df1753e">start</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Start the chat service. Specifically start <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_accept_thread.html">AcceptThread</a> to begin a session in listening (server) mode. Called by the Activity onResume() </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_ae3e5313b36e6f003857174584df1753e_cgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_ae3e5313b36e6f003857174584df1753e_cgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_ae3e5313b36e6f003857174584df1753e_cgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_ae3e5313b36e6f003857174584df1753e_cgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectThread.cancel" alt="" coords="108,5,601,32"/><area shape="rect" id="node5" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectedThread.cancel" alt="" coords="101,56,608,83"/><area shape="rect" id="node7" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a09b77b92fc6c880860a3dbf4ab21e36c" title="setState" alt="" coords="319,107,390,133"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_ae3e5313b36e6f003857174584df1753e_icgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_ae3e5313b36e6f003857174584df1753e_icgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_ae3e5313b36e6f003857174584df1753e_icgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_ae3e5313b36e6f003857174584df1753e_icgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a13a43e6d814de94978c515cb084873b1" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectThread.run" alt="" coords="102,5,575,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a4bcef6dec76484d625984ace718f36fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">synchronized void <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a4bcef6dec76484d625984ace718f36fd">stop</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Stop all threads </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a4bcef6dec76484d625984ace718f36fd_cgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a4bcef6dec76484d625984ace718f36fd_cgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a4bcef6dec76484d625984ace718f36fd_cgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a4bcef6dec76484d625984ace718f36fd_cgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectThread.cancel" alt="" coords="108,5,601,32"/><area shape="rect" id="node5" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectedThread.cancel" alt="" coords="101,56,608,83"/><area shape="rect" id="node7" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_accept_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.AcceptThread.cancel" alt="" coords="111,107,598,133"/><area shape="rect" id="node9" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a09b77b92fc6c880860a3dbf4ab21e36c" title="setState" alt="" coords="319,157,390,184"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a4bcef6dec76484d625984ace718f36fd_icgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a4bcef6dec76484d625984ace718f36fd_icgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a4bcef6dec76484d625984ace718f36fd_icgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a4bcef6dec76484d625984ace718f36fd_icgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a8a744b43949a3939f448facad211e3d2" title="com.example.android.BluetoothChat.LASARControl.onDestroy" alt="" coords="118,5,501,32"/><area shape="rect" id="node5" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#acb776333595cb036bf935852041cb088" title="com.example.android.BluetoothChat.LASARControl.onBackPressed" alt="" coords="101,56,517,83"/><area shape="rect" id="node7" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a3d586a7ab265876564fc5c288cb38e0d" title="Parses incoming stream. Finds Dimness and Blinds value on startup. Finds Frequency if prompted..." alt="" coords="128,107,491,133"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a8f39f71b4e3de075a0b64236eb5ec876"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a8f39f71b4e3de075a0b64236eb5ec876">write</a> </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"><em>out</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Write to the <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html">ConnectedThread</a> in an unsynchronized manner </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">out</td><td>The bytes to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also:</dt><dd><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html#ae29f62e52ac434bc0b80facee55ff1c8">ConnectedThread::write(byte[])</a> </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a8f39f71b4e3de075a0b64236eb5ec876_cgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a8f39f71b4e3de075a0b64236eb5ec876_cgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a8f39f71b4e3de075a0b64236eb5ec876_cgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a8f39f71b4e3de075a0b64236eb5ec876_cgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html#ae29f62e52ac434bc0b80facee55ff1c8" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectedThread.write" alt="" coords="104,5,600,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a8f39f71b4e3de075a0b64236eb5ec876_icgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a8f39f71b4e3de075a0b64236eb5ec876_icgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a8f39f71b4e3de075a0b64236eb5ec876_icgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_a8f39f71b4e3de075a0b64236eb5ec876_icgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a6a8a2004434afabb628a490d0d5273f9" title="com.example.android.BluetoothChat.LASARControl.sendMessage" alt="" coords="104,56,509,83"/><area shape="rect" id="node5" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a5bb861876066eec2e7de8212bc5312b5" title="com.example.android.BluetoothChat.LASARControl.setupChat" alt="" coords="1054,5,1437,32"/><area shape="rect" id="node9" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#adc846b4b8d9a9ee1e53b348432eb8aff" title="com.example.android.BluetoothChat.LASARControl.getFreq" alt="" coords="579,56,947,83"/><area shape="rect" id="node11" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#ab084bbab05e4d41e495608164e6bd56c" title="com.example.android.BluetoothChat.LASARControl.updateSatellite" alt="" coords="557,107,968,133"/><area shape="rect" id="node7" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a1f166dbb18c9970efc1bc01b9b2e5c54" title="Changes to Room Control screen. The MAC addresses are hard&#45;coded to appropriately connect to the RN&#45;4..." alt="" coords="1523,56,1885,83"/><area shape="rect" id="node13" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#abb13b75125cb8cb24fbeeef2451e262c" title="com.example.android.BluetoothChat.LASARControl.onStopTrackingTouch" alt="" coords="1021,56,1470,83"/><area shape="rect" id="node15" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#ae52c93cc72458772ce286f19d7cb6760" title="com.example.android.BluetoothChat.LASARControl.addListenerOnButton" alt="" coords="1022,107,1469,133"/><area shape="rect" id="node19" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a37a55c533c74b60c0290ef1329d74e65" title="com.example.android.BluetoothChat.LASARControl.onOptionsItemSelected" alt="" coords="1016,157,1475,184"/></map>
</div>
</p>

</div>
</div>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="a5d04bb9010fad999fbcad7c652d6c0ce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final boolean <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a5d04bb9010fad999fbcad7c652d6c0ce">D</a> = true<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a5e8a8695cae6c6a842646ec72feb30d7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_accept_thread.html">AcceptThread</a> <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a5e8a8695cae6c6a842646ec72feb30d7">mAcceptThread</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad0137191bfc9f5f84d692c5179046dac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final BluetoothAdapter <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#ad0137191bfc9f5f84d692c5179046dac">mAdapter</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a35e6f3f781880c30d3fffef2e408d367"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html">ConnectedThread</a> <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a35e6f3f781880c30d3fffef2e408d367">mConnectedThread</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a329b61002394a1b98ae8366549c3f4e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html">ConnectThread</a> <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a329b61002394a1b98ae8366549c3f4e8">mConnectThread</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac596631c3faeaba71c591b7d6232c489"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final Handler <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#ac596631c3faeaba71c591b7d6232c489">mHandler</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9170ea7c3cb727e1c86da45a7ed88a54"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a9170ea7c3cb727e1c86da45a7ed88a54">mState</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad6683c9b25da0fe7ea60ab048c7589cb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final UUID <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#ad6683c9b25da0fe7ea60ab048c7589cb">MY_UUID</a> = UUID.fromString(&quot;00001101-0000-1000-8000-00805F9B34FB&quot;)<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2e2a8b5e4b33363e36e2d75ff425c86c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final String <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a2e2a8b5e4b33363e36e2d75ff425c86c">NAME</a> = &quot;BluetoothChat&quot;<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a65bee812daa1c06904d2bfc9b6c98607"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final int <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a65bee812daa1c06904d2bfc9b6c98607">STATE_CONNECTED</a> = 3<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a3f330f5177bb8c94ae6c8796c4839e0c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final int <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a3f330f5177bb8c94ae6c8796c4839e0c">STATE_CONNECTING</a> = 2<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a5b119ac8b511b1ccc522ad84810097fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final int <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a5b119ac8b511b1ccc522ad84810097fd">STATE_LISTEN</a> = 1<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="acca6c8882253f023c0c4a78c76e07a5d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final int <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#acca6c8882253f023c0c4a78c76e07a5d">STATE_NONE</a> = 0<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a844c5efdea72aa6bf76fb98b1072572a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final String <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a844c5efdea72aa6bf76fb98b1072572a">TAG</a> = &quot;BluetoothChatService&quot;<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Code/LASAR/Android/LASAR Control/src/com/example/android/BluetoothChat/<a class="el" href="_bluetooth_chat_service_8java.html">BluetoothChatService.java</a></li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Mon Apr 23 2012 14:43:59 for LASAR by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
